/* Custom styles for benchmark visualization */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: none;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Score table styling */
.score-excellent {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.score-good {
    background-color: #d1ecf1;
    color: #0c5460;
}

.score-baseline {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.score-poor {
    background-color: #f8d7da;
    color: #721c24;
}

/* Badge styles */
.badge-rank-1 {
    background-color: #ffd700;
    color: #000;
    font-size: 1.1rem;
}

.badge-rank-2 {
    background-color: #c0c0c0;
    color: #000;
    font-size: 1.0rem;
}

.badge-rank-3 {
    background-color: #cd7f32;
    color: #fff;
    font-size: 0.9rem;
}

/* Chart containers */
canvas {
    max-height: 400px;
}

/* Device list */
#deviceList {
    max-height: 80px;
    overflow-y: auto;
}

.device-badge {
    display: inline-block;
    margin: 2px;
}

/* Current baseline info */
#currentBaselineInfo {
    display: block;
    margin-top: 5px;
    color: #0d6efd;
    font-size: 0.85rem;
}

#currentBaselineInfo i {
    margin-right: 4px;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    canvas {
        max-height: 300px;
    }
}

/* Table styling */
#scoresDataTable tbody tr:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Upload status */
#uploadStatus.success {
    color: #28a745;
}

#uploadStatus.error {
    color: #dc3545;
}

/* Metric value highlighting */
.metric-best {
    color: #28a745;
    font-weight: bold;
}

.metric-worst {
    color: #dc3545;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Device details popover and modal */
.popover {
    max-width: 350px;
    font-size: 0.9rem;
}

.popover-body {
    padding: 0.75rem;
}

.popover-body table {
    margin-bottom: 0;
}

.popover-body hr {
    margin: 0.5rem 0;
}

/* Device name with hover effect */
span[data-bs-toggle="popover"] {
    transition: color 0.2s ease;
}

span[data-bs-toggle="popover"]:hover {
    color: #0d6efd;
}

/* Detail button styling */
.btn-sm.btn-outline-info {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    line-height: 1;
}

/* Modal improvements */
.modal-lg {
    max-width: 800px;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.accordion-button {
    font-weight: 500;
}

/* Device details table */
.modal-body .table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.modal-body .list-group-item {
    border-color: #dee2e6;
}

